﻿#include "Timer.h"
#include "../Settings.h"

namespace Server::MirEnvir
{

    Server::MirEnvir::Envir *Timer::getEnvir()
    {
        return Envir::getMain();
    }

    Timer::Timer(const std::string &key, int seconds, unsigned char type)
    {
        Key = key;
        Seconds = seconds;
        Type = type;

        RelativeTime = getEnvir()->getTime() + (seconds * Settings::Second);
    }
}
